package cn.fan.testfunction.devise.single;

/**
 * 懒汉模式每次需要才创建  节省内存
 *
 * @author HTHLKJ
 * @version 1.0
 * @date 2021/11/11 10:11
 */
public class LanHanSingle {
    private static LanHanSingle instance;

    private LanHanSingle() {
    }

    public static LanHanSingle getLnstance() {
        if (instance == null) {
            return new LanHanSingle();
        }
        return instance;
    }
}
